﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>无标题文档</title>
  <style type="text/css">
<!--
li {
	line-height: 30px;
	text-align: center;
	float: left;
	height: 30px;
	width: 100px;
	list-style-type: none;
	border-top-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-left-style: solid;
	border-top-color: #036;
	border-left-color: #036;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 3px;
}
.rightborder {
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #036;
}
.none {
	display: none;
}
.box{
	height: 200px;
	width: 302px;
	border: 1px solid #006;
	background-color: #eee;
	clear: both;
	text-align: center;
	padding-top: 50px;
        font-size:150px;
}

ul {
	margin: 0px;
	padding: 0px;
}
.cur{
	border-bottom: none;
	color: aqua;
	font-weight: bold;
}
-->
  </style>
<script language="javascript" src="js/jquery-3.3.1.min.js"></script>
<script language="javascript">
$(function(){
	
	$("li").mouseover(function(){
        var index=$("li").index(this);//点哪里对应的地方变
		$(".box").eq(index).show().siblings(".box").hide();//其他兄弟元素全部隐藏
		$(this).addClass("cur").siblings().removeClass("cur")
	
	});
});
</script>

</head>
<body>
<ul>
  <li>国内</li>
  <li>国际</li>
  <li class="rightborder">综合</li>
</ul>
<div class="box">1</div>
<div class="box none">2</div>
<div class="box none">3</div>

</body>
</html>
